#region Usings

using Castle.Core.Interceptor;
using Karma.Framework.Core.IoC.Extensibility;
using IInterceptor=Castle.Core.Interceptor.IInterceptor;

#endregion

namespace Karma.Framework.Core.Test.IoC.Services
{
    [PlugInApplicationConstraints(Types = new[] {typeof (IGenericBaseInterface<>)}, Multicast = true)]
    public class GenericInterfaceInterceptor : IInterceptor, Core.IoC.Extensibility.IInterceptor
    {
        #region IInterceptor Members

        public void Intercept(IInvocation invocation)
        {
            invocation.Arguments[0] = "interceptor";
            invocation.Proceed();
        }

        #endregion
    }
}